package pojo;

import java.util.Date;
import java.util.List;

/**
 * @author 01395265
 * @description TODO
 * @date 2020/9/20
 */
public class FullStudent extends Student {

    private List<Score> scoreList;

    private House house;

    public FullStudent(Integer id, Date sbirthday) {
        super.setId(id + 10000);
        super.setSbirthday(new Date(sbirthday.getTime() + 24 * 60 * 60 * 1000));
        System.out.println("constructor with two argument is called! ");
    }

    public List<Score> getScoreList() {
        return scoreList;
    }

    public void setScoreList(List<Score> scoreList) {
        this.scoreList = scoreList;
    }

    public House getHouse() {
        return house;
    }

    public void setHouse(House house) {
        this.house = house;
    }

    @Override
    public String toString() {
        return "FullStudent{" + super.toString() + ", " +
            "scoreList=" + scoreList +
            ", house=" + house +
            '}';
    }
}
